function Https({data = {},url = ``,type = 'get'}) {
    return new Promise((resolve, reject) => {
        $.ajax({
            url,
            data,
            type,
            success(res) {
                //    console.log(res)
                resolve([null, res])
            },
            error(err) {
                // console.log(res)
                resolve([err])
            }
        })
    })
}
//暴露
module.exports = Https